home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / Source / modem_break.ou < prev    next >
Encoding:
Text File  |  1995-06-12  |  1000 b   |  67 lines

  1.  
  2.  
  3.  
  4.      MODEM_BREAK(1)       UNIX    System V (local)    MODEM_BREAK(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.       modem_break -    send a modem break
  10.  
  11.      SYNOPSIS
  12.       modem_break
  13.  
  14.      DESCRIPTION
  15.       Modem_break creates a    "modem break" on the stdout.  Modem
  16.       break    is a condition of a communications line    when the line
  17.       is held "low"    for 200    ms.  It    is typically used to tell the
  18.       remote system    to switch to a different baud rate.
  19.  
  20.       Modem_break is designed to be    used by    Pcomm in a shell
  21.       script for automatically logging a user onto a remote
  22.       system.
  23.  
  24.      EXAMPLE
  25.            while true
  26.            do
  27.             # wait 5 seconds for the login prompt
  28.             waitfor -5 login:
  29.             # test the exit code of the    waitfor    command
  30.             if [ $? -eq    0 ]
  31.             then
  32.              # send    my user    ID and break out of the    loop
  33.              echo egray
  34.              break
  35.             fi
  36.             # send a modem break
  37.             modem_break
  38.            done
  39.  
  40.      SEE ALSO
  41.       pcomm(1), waitfor(1),    matches(1), Pcomm Reference Manual
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/31/89)
  64.  
  65.  
  66.  
  67.